package com.client.rpcclient;




import com.common.entity.RPCRequest;
import com.common.entity.RPCResponse;

import java.util.concurrent.CompletableFuture;

/**
 * @author Zixiang Hu
 * @description 定义通用的RPC客户端接口
 * @create 2021-03-01-14:57
 */
public interface RPCClient {
    /**
     * 向服务端发送请求并返回响应
     *
     * @param rpcRequest
     * @return
     */
    CompletableFuture<RPCResponse> sendRequest(RPCRequest rpcRequest);

}
